home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_military prophet.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  1.3 KB  |  64 lines

  1. //
  2. // Military Prophet unit AI file
  3. //
  4. // Behaviors:
  5. //
  6. //        At players request, cast calamities.  Attacks like a regular unit
  7. //
  8. //    Notes:
  9. //
  10. //    Known Problems:
  11. //
  12.  
  13. FaceEnemyUnit
  14. {
  15.     EnemyUnitDestroyed true(ShouldIReturnToInitialContactLocation)
  16.     allof(GoalIsCalamity,FacingEnemyUnit) true(CalamityPreCast)
  17. }
  18.  
  19. ReacquireGoal
  20. {
  21.     allof(GoalIsCalamity,EnemyUnitDestroyed) true(ShouldIReturnToInitialContactLocation)
  22.     allof(GoalIsCalamity,UnitInWeaponRange) true(CalamityPreCast)
  23.     GoalIsCalamity true(PrepareToMove)
  24. }
  25.  
  26. CalamityPreCast
  27. {
  28.     CalamityTargetStillValid true(CastCalamity) false(ShouldIReturnToInitialContactLocation)
  29. }
  30.  
  31. // just for old saved games
  32. PrepareToCastCalamity
  33. {
  34.     AlwaysTrue true(CastCalamity)
  35. }
  36.  
  37. CastCalamity
  38. {
  39.     allof(OwnerIsHuman,OneSecondElapsed) true(Idle)
  40.     allof(OwnerIsComputer,OneSecondElapsed) true(PostCalamityFlee)
  41. }
  42.  
  43. PrepareToMove
  44. {
  45.     allof(GoalIsCalamity,UnitInWeaponRange) true(FaceEnemyUnit)
  46. }
  47.  
  48. GetNextMoveWaypoint
  49. {
  50.     EnemyUnitDestroyed true(ShouldIReturnToInitialContactLocation)
  51.     allof(GoalIsCalamity,NextWaypointRetrieved,UnitInWeaponRange) true(FaceEnemyUnit)
  52. }
  53.  
  54. #include("Generic Attack.tai")
  55.  
  56. #include("Generic Movement.tai")
  57.  
  58. GetNextMoveWaypoint
  59. {
  60.     GoalIsCalamity true(ReacquireGoal)
  61. }
  62.  
  63. #include("Generic Death.tai")
  64. #include("Patrol.tai")